package com.yixuan.mt.common.request;

import com.yixuan.mt.common.constant.PoliciesConstant;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.Size;
import lombok.Data;

@Data
public class PostPoliciesRequest {
    @NotEmpty(message = "策略名不能为空！")
    @Size(max = PoliciesConstant.POLICY_NAME_MAX_LENGTH, message = "策略名长度不能超过30！")
    private String name;
    @NotEmpty(message = "策略内容不能为空！")
    @Size(max = PoliciesConstant.POLICY_CONTENT_MAX_LENGTH, message = "策略内容长度不能超过1000！")
    private String content;
}
